package maopao;



public class rabbit {
	
	
	public static void main(String[] args) {
		
		//count(0);
		
		/*
		 		int a=1%5;
				 int b= -1%5;
				int c = -1%-5; 
		*/

		 		int a=1/5;
				 int b= -1/5;
				int c = -7/-5; 
		
		
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
		
		//count(mouth);
		
		//System.out.println("第"+mouth +"月有"+count(mouth));
				
	}
	
	
	private static int  count( int mouth){
		
		
		//这个是当月份等于1或者2的时候
		if (mouth==1||mouth==2) {
			
			return 1; 
					
		}else if (mouth<1) {
			System.out.println("你输入的月份有误");
			return 0;
		}
		else {
			return count(mouth-1)+count(mouth-2);
		}
		
		
		
	}
	
	private static int counts(int mouth){
		
		int counts[] = new int[mouth];
		
		if (mouth==1||mouth==2) {
			
			System.out.println("这个月有一对兔子");
			return 1;
					
		}else if (mouth<1) {
			System.out.println("你输入的月份有误");
			return 0;
		}
		
		else {
			counts[0]=1;
			counts[1]=1;
			for (int i = 2; i <= counts.length-1; i++) {
				//counts[i+1] 就是兔子的总数
				counts[i] =counts[i-1]+counts[i-2];
						
			}
			//输出月份的时候咱们要让月份-1，因为数组的下表是以0开始的；
			System.out.println(counts[mouth-1]);
			return counts[mouth-1];
		}
		
	}
	
	
	
}
